package com.example.a2209_shop.database

import android.app.Application
import android.provider.DocumentsContract.Root
import androidx.room.Room

class DBUtils {
    companion object{
        private lateinit var myDataBase: MyDataBase

        fun init(application: Application){
            myDataBase = Room.databaseBuilder(application,MyDataBase::class.java,"2208.db")
                .allowMainThreadQueries()
                .build()
        }

        fun getDb() = myDataBase
    }
}